Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add better autolockrenew on-failure handling capabilities. #12307

Conversation

KieranBrantnerMagee
Copy link
Member

autolockrenewer can now take a callback that fires when for any non-user-defined reason (e.g. not due to settlement or shutdown) a lock is lost on an auto-lock-renewed session or message.

In doing so refactors autolockrenewer into its own file for better encapsulation, as it is effectively a stand-alone entity within the sdk.

Adds tests as well and changelog notes.

…ser-defined reason (e.g. not due to settlement or shutdown) a lock is lost on an auto-lock-renewed session or message. Adds tests as well and changelog notes.
@KieranBrantnerMagee KieranBrantnerMagee added Service Bus Client This issue points to a problem in the data-plane of the library. labels Jul 1, 2020
@KieranBrantnerMagee KieranBrantnerMagee self-assigned this Jul 1, 2020
@KieranBrantnerMagee KieranBrantnerMagee added this to the [2020] August milestone Jul 7, 2020
…able

- add a test for receiver shutdown halting autorenewal (and corrosponding mocks)
- Add proper typing and documentation to aio code.
…other comparable instances. Adjust tests/docs/guides/etc.

Add changelog entry for the on lock renew callback.
… with OOB changes. (param renames e.g. _lock_expired)
@KieranBrantnerMagee
Copy link
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

annatisch
annatisch previously approved these changes Jul 20, 2020
…w; make tests be more precise by explicitly clearing results list between trials.
…or the callbacks, differentiate the async and sync autolockrenewer callback docstring.
@KieranBrantnerMagee
Copy link
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@KieranBrantnerMagee
Copy link
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@KieranBrantnerMagee
Copy link
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@KieranBrantnerMagee
Copy link
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Pull request contains merge conflicts.

@KieranBrantnerMagee
Copy link
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@KieranBrantnerMagee
Copy link
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@yunhaoling yunhaoling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KieranBrantnerMagee KieranBrantnerMagee merged commit 5cf31c0 into Azure:master Jul 23, 2020
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this pull request Jul 29, 2020
…into regenerate_keys

* 'master' of https://github.com/Azure/azure-sdk-for-python: (24 commits)
  rename FormField.type -> FormField.value_type (Azure#12708)
  20200703 codereport (Azure#12361)
  Use the common Cosmos emulator template. (Azure#12678)
  Add azurestackhci ci.yml for pipeline generation. (Azure#12701)
  [ServiceBus] Resend received message (Azure#12457)
  AZURE_CLIENT_ID sets user-assigned managed identity for DefaultAzureCredential (Azure#12689)
  Add better autolockrenew on-failure handling capabilities. (Azure#12307)
  Update CODEOWNERS (Azure#12418)
  close client session in async tests (Azure#12656)
  Sync eng/common directory with azure-sdk-tools repository (Azure#12502)
  [Event Hubs] Use EventHubManagementClient to create test resources (Azure#12501)
  Increment package version after release of azure_identity (Azure#12675)
  [formrecognizer] include error code for errors that occur during polling (Azure#12621)
  Cross-language consistency changes (Azure#12669)
  Enable APIStubGen step (Azure#12615)
  Adding the ability to create a container with analytical storage turned on. (Azure#12408)
  [ServiceBus] Adjust user-agent following the guideline (Azure#12596)
  Release for Cognitive Services - Anomaly Detector (Azure#12582)
  [formrecognizer] Add type to FormField (Azure#12561)
  Add example summary for azure-identity readme.md (Azure#12509)
  ...
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-python that referenced this pull request Jan 13, 2021
One final private link connection fix, hopefully the last (Azure#12307)

* One final private link connection fix, hopefully the last

* Undid some incorrect changes that snuck in

* Fixed two data plane python typos

* FInal python changes, hopefully

* Put back unreferenced types to make breaking change vaidator happy

* Next attempt at changes - added back the privateEndpointConnections API which should generate the correct aliases

* Pull request CI fixes

* Pull request CI fixes
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-python that referenced this pull request Jan 28, 2021
One final private link connection fix, hopefully the last (Azure#12307)

* One final private link connection fix, hopefully the last

* Undid some incorrect changes that snuck in

* Fixed two data plane python typos

* FInal python changes, hopefully

* Put back unreferenced types to make breaking change vaidator happy

* Next attempt at changes - added back the privateEndpointConnections API which should generate the correct aliases

* Pull request CI fixes

* Pull request CI fixes
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-python that referenced this pull request Jan 28, 2021
One final private link connection fix, hopefully the last (Azure#12307)

* One final private link connection fix, hopefully the last

* Undid some incorrect changes that snuck in

* Fixed two data plane python typos

* FInal python changes, hopefully

* Put back unreferenced types to make breaking change vaidator happy

* Next attempt at changes - added back the privateEndpointConnections API which should generate the correct aliases

* Pull request CI fixes

* Pull request CI fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Service Bus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants